=======
---
>>>>>>> f5578133cf5417912a72db6bfbad4fd4e506e532
=======
<<<<<<< HEAD
=======
>>>>>>> cbbca28058ca4500147374ecc8fb8bf0ae1500ce
>>>>>>> 5a27573c0ae598542ebacc638267bc616294156c
---
# Plots
```
## [1] "country" "year" "overall_consumption"
## [4] "energy_type" "consumption"
```
---
<img src="presentation_files/figure-html/barchart-transformed-fig-1.png" width="80%" />
---
<img src="presentation_files/figure-html/china-usa-bar-1.png" width="80%" />
```
<<<<<<< HEAD
=======
<<<<<<< HEAD
=======
>>>>>>> cbbca28058ca4500147374ecc8fb8bf0ae1500ce
>>>>>>> 5a27573c0ae598542ebacc638267bc616294156c
```r
# leaflettdata <- leaflettdata %>%
# left_join(world_spdf2, by = c("country" = "NAME")) %>%
#st_as_sf()
```
<<<<<<< HEAD
=======
>>>>>>> cbbca28058ca4500147374ecc8fb8bf0ae1500ce
<img src="presentation_files/figure-html/plot-iris-1.png" width="80%" />
---
## Plot and text
.pull-left[
- Some text
- goes here
]
.pull-right[
]
---
# Tables
If you want to generate a table, make sure it is in the HTML format (instead of Markdown or other formats), e.g.,
<table>
<thead>
<tr>
<th style="text-align:right;"> Sepal.Length </th>
<th style="text-align:right;"> Sepal.Width </th>
<th style="text-align:right;"> Petal.Length </th>
<th style="text-align:right;"> Petal.Width </th>
<th style="text-align:left;"> Species </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right;"> 5.1 </td>
<td style="text-align:right;"> 3.5 </td>
<td style="text-align:right;"> 1.4 </td>
<td style="text-align:right;"> 0.2 </td>
<td style="text-align:left;"> setosa </td>
</tr>
<tr>
<td style="text-align:right;"> 4.9 </td>
<td style="text-align:right;"> 3.0 </td>
<td style="text-align:right;"> 1.4 </td>
<td style="text-align:right;"> 0.2 </td>
<td style="text-align:left;"> setosa </td>
</tr>
<tr>
<td style="text-align:right;"> 4.7 </td>
<td style="text-align:right;"> 3.2 </td>
<td style="text-align:right;"> 1.3 </td>
<td style="text-align:right;"> 0.2 </td>
<td style="text-align:left;"> setosa </td>
</tr>
<tr>
<td style="text-align:right;"> 4.6 </td>
<td style="text-align:right;"> 3.1 </td>
<td style="text-align:right;"> 1.5 </td>
<td style="text-align:right;"> 0.2 </td>
<td style="text-align:left;"> setosa </td>
</tr>
<tr>
<td style="text-align:right;"> 5.0 </td>
<td style="text-align:right;"> 3.6 </td>
<td style="text-align:right;"> 1.4 </td>
<td style="text-align:right;"> 0.2 </td>
<td style="text-align:left;"> setosa </td>
</tr>
<tr>
<td style="text-align:right;"> 5.4 </td>
<td style="text-align:right;"> 3.9 </td>
<td style="text-align:right;"> 1.7 </td>
<td style="text-align:right;"> 0.4 </td>
<td style="text-align:left;"> setosa </td>
</tr>
</tbody>
</table>
---
# Images
<div class="figure" style="text-align: center">
<img src="https://images.unsplash.com/photo-1535448033526-c0e85c9e6968?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1650&q=80" alt="Image credit: Photo by Jörg Angeli on Unsplash." width="60%" />
<p class="caption">Image credit: Photo by Jörg Angeli on Unsplash.</p>
</div>
Or you can also include a full page image. See next slide.
---
background-image: url(https://images.unsplash.com/photo-1535448033526-c0e85c9e6968?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1650&q=80)
---
# Math Expressions
You can write LaTeX math expressions inside a pair of dollar signs, e.g. $\alpha+\beta$ renders `\(\alpha+\beta\)`. You can use the display style with double dollar signs:
```
`$$\bar{X}=\frac{1}{n}\sum_{i=1}^nX_i$$`
```
`$$\bar{X}=\frac{1}{n}\sum_{i=1}^nX_i$$`
Limitations:
1. The source code of a LaTeX math expression must be in one line, unless it is inside a pair of double dollar signs, in which case the starting `$$` must appear in the very beginning of a line, followed immediately by a non-space character, and the ending `$$` must be at the end of a line, led by a non-space character;
1. There should not be spaces after the opening `$` or before the closing `$`.
1. Math does not work on the title slide (see [#61](https://github.com/yihui/xaringan/issues/61) for a workaround).
---
# Feeling adventurous?
- Want to find out more about `xaringan`? See https://slides.yihui.name/xaringan/#1.
- You are welcomed to use the default styling of the slides. In fact, that's what I expect majority of you will do. You will differentiate yourself with the content of your presentation.
- But some of you might want to play around with slide styling. The
`xaringanthemer` provides some solutions for this that: https://pkg.garrickadenbuie.com/xaringanthemer.
- And if you want more bells and whistles, there is also `xaringanExtra`: https://pkg.garrickadenbuie.com/xaringanExtra.